cmake_minimum_required(VERSION 3.15)
project(SparkMax)

find_package(allwpilib REQUIRED)

file(GLOB SRC ${CMAKE_CURRENT_LIST_DIR}/*.cpp ${CMAKE_CURRENT_LIST_DIR}/*.c)
set(INC ${CMAKE_CURRENT_LIST_DIR})

add_library(${PROJECT_NAME} STATIC ${SRC})

target_include_directories(${PROJECT_NAME} PUBLIC ${INC})
target_link_libraries(${PROJECT_NAME} allwpilib::allwpilib)
